package com.fgba.express.data.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fgba.express.comm.enums.NoticeType;
import com.fgba.express.core.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 通知Dto
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "NoticeDto对象", description = "通知Dto")
public class NoticeDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知标题")
    private String title;

    @ApiModelProperty(value = "通知内容")
    private String context;

    @ApiModelProperty(value = "通知类型")
    private NoticeType type;

    @ApiModelProperty(value = "发布人")
    private String releaseName;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "需要通知的用户ID")
    private List<Long> userIds;

}
